package com.yky.utils.base;

/**
 * 字符串处理
 * 
 * @author Administrator
 * 
 */
public class ContentUtils {

	public static String getContent(String content) {
		try {
			if (null != content || !"".equals(content)
					|| !"null".equals(content)) {
				content = content.replace("\r\n", "<br/>");
			}
			return content;
		} catch (Exception e) {
			return content;
		}

	}

	public static String getContentForSave(String content) {
		try {
			if (null != content || !"".equals(content)
					|| !"null".equals(content)) {
				content = content.replace("\r\n", "");
			}
			return content;
		} catch (Exception e) {
			return content;
		}

	}
}
